package swingTest;

import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import java.io.File;

public class TestPlayer {
    public static void main(String[] args) throws Exception {
        Clip clip = AudioSystem.getClip();
        clip.open(AudioSystem.getAudioInputStream(new File("music/music1.wav")));
        clip.start();
        clip.setLoopPoints(0, clip.getFrameLength() - 1);
        System.out.println(clip.getMicrosecondLength());
        while (true) {

        }
    }
}
